<?php
	
$tel = $_REQUEST['tel']	;
//$tel = '15103785516';
$con = mysqli_connect('localhost','root','','friday');
mysqli_set_charset($con,'utf8');
      $sql="select * from accountstate where telphone='{$tel}'"	;	
		$result = mysqli_query($con, $sql);
		$arr = mysqli_fetch_all($result,MYSQLI_ASSOC);
		$str = json_encode($arr);
		echo $str;
?>